command: avoid returning invalid FPS values

It's possible that fps is sometimes 0 in case it's unset.