Added null check after getting File from FX Save Dialog