Added null biome check, made sky setting generic

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>