Prevent exceptions if no object ids have been passed