Move check for ammo effect outside of time_to_fire() to avoid dereferenc...

...ing (potentially null) currammo.
Fixes #1960