My guess is that this has something to do with when you are setting the root or calling the loader - you'll have to input the FXML class name exactly as a string with .fxml. For example:
FXMLLoader loader = new FXMLLoader(getClass().getResource("WelcomeScreen.fxml"));