fix for null pointer exception...

I have here a problem when switching states: after update to flixel 3.2.1 the frames==null, when adding this check everything works.
Merge pull request #1048 from SergioB/patch-1

fix for null pointer exception...