Add IS_DEV_SERVER check on second conditional as well.

Fixes #913.